﻿<UserControl x:Class="SheepAspectQueryAnalyzer.View.QueryResultView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" >
    <Grid>
        <TreeView Grid.Row="1"  ItemsSource="{Binding Path=TreeNodes}">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate DataType="SheepAspectQueryAnalyzer.ViewModel.CodeTree" ItemsSource="{Binding Path=Children}">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="{Binding Icon}" Margin="0,0,5,0" />
                        <TextBlock Text="{Binding DisplayName}" />
                    </StackPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
        </TreeView>
    </Grid>
</UserControl>
